<html xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">
<head>
	<meta charset="UTF-8">
	<title>天天生鲜-商品详情页</title>
	<link rel="stylesheet" href="css/main.css">
	<link rel="stylesheet" href="css/reset.css">
	<script type="text/javascript" src="js/jquery-2.1.0.min.js"></script>
</head>
<body>
	<!-- 头部信息 -->
	<div class="header_con">
		<div class="header">
			<div class="welcome">欢迎来到详情页!</div>
			<div class="user_login">
			
			</div>
		</div>
	</div>
	
	<!-- 商品信息栏 -->
	
	
	<div class="center_con clearfix">
		<div class="main_menu fl"><img th:src="${good.path}"></div>
		<div class="goods_detail_list fr">
			<h3><span th:text="${good.goodName}"></span></h3>
			<div class="prize_bar">
				<div class="show_prize fl">￥<em><span th:text="${good.price}"></span></em></div>
				<div class="show_unit fl">单位：500g</div>
			</div>
			<div class="goods_num clearfix">
				<div class="num_name fl">数量：</div>
				<div class="num_add fl">
					<input type="text" class="num_show fl" value="1">
					<a href="javascript:;" class="add fr">+</a>
					<a href="javascript:;" class="minus fr">-</a>
				</div>
			</div>
			<div class="total">总价：<em><span th:text="${good.price}"></span>元</em></div>
			<div class="operate_btn">
				<button class="buy_btn" id="buy_now">立即购买</button>
				<button href="" class="add_cart" id="add_now">加入购物车</button>
			</div>
		</div>
	</div>
	<script>
		$(document).ready(function(){
			$("#buy_now").click(function(){
				alert("购买成功");
			});

			$("#add_now").click(function(){
				alert("加入购物车成功");
			});
		});

	</script>
</body>
</html>
